//
//  EMMBaseViewController.h
//  EMMApp
//
//  Created by Mac on 16/4/26.
//  Copyright © 2016年 YiXun. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface EMMBaseViewController : UIViewController

@property(nonatomic,strong) MBProgressHUD *hud;
//设置标题
- (id)initWithTitle:(NSString *)title;

- (id)initWithTitle:(NSString *)title viewClass:(Class)viewClass;


//-(void)showHudInWindow;

-(void)showHudInWindow:(NSString*) tip;

-(void)showHud;

-(void)showHud:(NSString*) tip;

-(void)showHud:(NSString*) tip model:(BOOL)ismodel;

-(void)showHud:(NSString*) tip inTime:(float)time;

-(void)hideHud;

- (void)configLeftBtn;

//- (void)configTitle:(NSString *)str;

-(void) goBack;

-(void) showToast:(NSString*) str;

-(void) pushVC:(UIViewController*) viewController;

- (void)alertWithTitle:(NSString *)title msg:(NSString *)msg;

- (BOOL)gestureRecognizerShouldBegin;

//- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer;

@end
